package org.huhu.mercury.web.controller;

import org.huhu.mercury.web.tool.RequestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;

/**
 * Created by yfx on 2017/7/9 0009.
 */
public abstract class BaseController {

    protected static Logger logger= LoggerFactory.getLogger(IndexController.class);

    /**
     * 设置attribute值
     * @param name
     * @param value
     */
    private void setAttribute(String name,Object value){
        RequestUtils.setAttribute(name, value);
    }
}
